<%@ page  contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="page" uri="http://www.forten.org/taglib/page"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="forten" uri="http://www.forten.org/taglib/forten"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>干部信息</title>
<!-- CSS -->
<link type="text/css" rel="stylesheet" href="../styles/css/reset.css">
<link type="text/css" rel="stylesheet" href="../styles/css/index.css">
<script type="text/javascript" src="../scripts/html5.js"></script>
<!-- end -->
<!-- jquery -->
<script type="text/javascript" src="../scripts/jquery-1.6.min.js"></script>
<!-- 日期控件 -->
<script type="text/javascript" src="../scripts/Calendar/Js/calendar.js"></script>
<link type="text/css" rel="stylesheet"
	href="../scripts/Calendar/Css/calendar.css" />
<!-- end -->
<!-- 验证引擎组件 -->
<script type="text/javascript"
	src="../scripts/validationEngine/jquery.validationEngine-zh_CN.js"
	charset="utf-8"></script>
<script type="text/javascript"
	src="../scripts/validationEngine/jquery.validationEngine.js"
	charset="utf-8"></script>
<link href="../scripts/validationEngine/validationEngine.jquery.css"
	charset="utf-8" rel="stylesheet" type="text/css" />
</head>

<body>

	<script type="text/javascript">
		//验证引擎初始

		function doSubmit() {
			if ($("#frm").validationEngine('validate')) {
				document.frm.action = "addCadre.jspx";
				document.frm.submit();
			}
		}

		$(document).ready(function() {

			$("#frm").validationEngine({
				promptPosition : "topRight",
				inlineValidation : false,
				success : false,
				failure : function() {
					callFailFunction()
				}
			});
		});
	</script>

	<header>
	<div class="headerWrap"></div>
	</header>
	<div class="content">
		<section>
		<div class="rc_b">
			<div class="rc_info">
				<h3>
					<span class="r_title_ico"></span> 新增干部信息(带*为必填部分)
				</h3>
			</div>

			<form:form action="addCadre.jspx" modelAttribute="addDto"
				name="frm" id="frm">
				<table class="rc_tab03" cellspacing="0" cellpadding="0">
					<tbody>
						<tr>
							<th style="width: 20%;">工作证号</th>
							<forten:token name="addCadre" returnUrl="gotoCadreList.jspx"></forten:token>
							<td class="txtLeft"><form:input path="cardNum"
									class="validate[required]" maxlength="15"/>&nbsp;*</td>
							<th style="width: 20%;">姓名</th>
							<td class="rc_cr" style="width: 30%;"><span class="txtLeft"><form:input
										path="name" class="validate[required]" /></span>&nbsp;*</td>
						</tr>
						<tr>

							<th style="width: 20%;">出生日期</th>
							<td class="txtLeft"><form:input path="birthday" /></td>
							<th style="width: 20%;">民族</th>
							<td class="rc_cr" style="width: 30%;"><span class="txtLeft">
									<form:input path="nation" />
							</span></td>
						</tr>
						<tr>
							<th style="width: 20%;">院系部处</th>
							<td class="txtLeft"><form:input path="unitName"
									class="validate[required]" />&nbsp;*</td>
							<th style="width: 20%;">性别</th>
							<td class="rc_cr" style="width: 30%;"><span class="txtLeft">
									<form:select path="sex">
										<form:option value="男"></form:option>
										<form:option value="女"></form:option>
									</form:select>
							</span>&nbsp;*</td>
						</tr>
						<tr>
							<th style="width: 20%;">学历</th>
							<td class="txtLeft"> <form:input
										path="education" /></td>
							<th style="width: 20%;">是否新干部</th>
							<td class="rc_cr"><span class="txtLeft"> <form:select
										path="isNewFlag" class="validate[required]">
										<form:option label="---请选择---" value=""></form:option>
										<form:option value="0">否</form:option>
										<form:option value="1">是</form:option>
									</form:select>&nbsp;*
							</span></td>
						</tr>
						<tr>
							<th style="width: 20%;">党派</th>
							<td class="txtLeft"><form:input path="party" /></td>

							<th style="width: 20%;">职称</th>
							<td class="rc_cr"><span class="txtLeft"> <form:input
										path="titles" /></span></td>
						</tr>
						<tr>
							<th style="width: 20%;">职务</th>
							<td class="txtLeft"><form:input path="duty" /></td>
							<th style="width: 20%;">级别</th>
							<td class="rc_cr"><span class="txtLeft"> <form:select
										path="jobLevel" class="validate[required]">
										<form:option label="---请选择---" value=""></form:option>
										<form:option value="1">副部级</form:option>
										<form:option value="2">正局级</form:option>
										<form:option value="3">副局级</form:option>
										<form:option value="4">正处级</form:option>
										<form:option value="5">副处级</form:option>
										<form:option value="6">正科级</form:option>
										<form:option value="7">副科级</form:option>
									</form:select>&nbsp;*
							</span></td>
						</tr>
						<tr>
							<th style="width: 20%;">任职时间</th>
							<td class="txtLeft"><form:input path="postTime"
									onclick="displayCalendar(this, 'yyyy-mm ', this, false, '');"
									readonly="true" /></td>
							<th style="width: 20%;">邮件地址</th>
							<td class="rc_cr"><span class="txtLeft"><form:input
										path="email" class="validate[custom[email]]" /></span></td>
						</tr>
						<tr>

							<th style="width: 20%;">手机号码</th>
							<td class="txtLeft"><form:input path="mobileNum"
									class="validate[custom[phone]]" /></td>
							<th style="width: 20%;">办公电话</th>
							<td class="rc_cr"><span class="txtLeft"> <form:input
										path="officeTel" class="validate[custom[phone]]" />
							</span></td>
						</tr>
						<tr>
							<th style="width: 20%;">备注</th>
							<td class="txtLeft rc_cr" colspan="3"><form:textarea
									path="memo" cols="80" rows="4" /></td>
						</tr>
					</tbody>
				</table>
			</form:form>
			<div class="auto lh30 txtCenter mb15">
				<a class="btn mt7 mr15" href="#" onclick="doSubmit();"> <span>保存</span>
				</a> <a class="btn mt7" href="showCadreList.jspx"> <span>返回</span>
				</a>
			</div>

		</div>
		</section>
		<!-- cont end -->
	</div>
	
<%@include file="/common/foot.jsp"%>